package com.lianjinsu.shop.repository.dao;

import com.lianjinsu.shop.core.mybatis.AdvancedDao;
import com.lianjinsu.shop.entity.Shop;

import java.util.Collection;
import java.util.List;

public interface ShopDao extends AdvancedDao<Shop> {

    boolean increaseStock(int id, int stock);

    boolean hotOrNot(int id, boolean hot);

    List<Shop> selectByIds(Collection<Integer> ids);

    List<Shop> selectByType(String type);

    List<Shop> selectByTags(Collection<String> tags);

    List<Shop> hotList();

    List<Shop> selectListName(String shopName);
}
